/**
 * Created with JetBrains WebStorm.
 * User: Tao
 * Date: 13-3-18
 * Time: 上午11:00
 * To change this template use File | Settings | File Templates.
 */
Ext.application({

    name:'Demo',

    launch:function(){

        var segmentedButton = Ext.create('Ext.SegmentedButton',{
            allowMultiple:true,

            items:[
                {
                    text:'按钮1'
                },{
                    text:'按钮2'
                },{
                    text:'按钮3'
                }
            ]
        });
        var myToolBar = Ext.create('Ext.Toolbar',{
            id:'mytoolbar',
            docked:'top',
            items:[segmentedButton]
        });
        var myPanel = Ext.create('Ext.Panel',{
            id:'myPanel',
            items:[myToolBar],
            html:'测试面板'
        });
        Ext.Viewport.add(myPanel);
    }

});